import request from '@/utils/request'

export function processAll(data) { //流程配置-全部流程
  return request({
    url: '/project-management/api/market/process/config/all',
    method: 'post',
    data
  })
}

export function processList(data) { //流程配置-列表
  return request({
    url: '/project-management/api/market/process/config/page',
    method: 'post',
    data
  })
}

export function processAdd(data) { //流程配置-新增
  return request({
    url: '/project-management/api/market/process/config/add',
    method: 'post',
    data
  })
}

export function processEdit(data) { //流程配置-编辑
  return request({
    url: '/project-management/api/market/process/config/edit',
    method: 'post',
    data
  })
}
export function processDelete(id) { //流程配置-删除
  return request({
    url: '/project-management/api/market/process/config/del/' + id,
    method: 'get',
  })
}

export function processDetails(id) { //流程配置-详情
  return request({
    url: '/project-management/api/market/process/config/' + id,
    method: 'get',
  })
}
